home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / g / gnu_c / gpplib22.zoo / libtests / makefile.32 < prev    next >
Encoding:
Makefile  |  1993-11-30  |  1.8 KB  |  90 lines

  1. # Makefile for g++ library test files (32 bit int default)
  2.  
  3. GXX= cgcc
  4. CC= cgcc
  5. AR= car
  6. AS= $(CC)
  7.  
  8. # common subset of options; no int size or omit-frame-pointer:
  9. COMMONOPT = -O2 -fstrength-reduce # -m68020 -m68881
  10. COMMONFLAGS =
  11. COMMONDEFINES =
  12.  
  13. COPTS= $(COMMONOPT) $(COMMONFLAGS) $(COMMONDEFINES)  \
  14.        -DNDEBUG $(XFLAGS)
  15.  
  16. GXXOPTS= $(COMMONOPT) $(COMMONFLAGS) $(COMMONDEFINES)  \
  17.          $(XXFLAGS)
  18.  
  19. # Base options CC; includes int size but not omit-frame-pointer
  20. CFFLAGS = $(COPTS)
  21. GXXFFLAGS = $(GXXOPTS)
  22.  
  23. # normal CFLAGS including int size and omit-frame-pointer
  24. CFLAGS= $(CFFLAGS) -fomit-frame-pointer
  25. GXXFLAGS = $(GXXFFLAGS) -fomit-frame-pointer
  26.  
  27. # cflags for stuff that needs to be compiled with 32 bit ints
  28. CLFLAGS= $(CFLAGS)
  29. GXXLFLAGS = $(GXXFLAGS)
  30.  
  31. # flags to $(CC) when it runs the assembler only
  32. ASFLAGS= -c
  33.  
  34. # pre-processor flags
  35. PPFLAGS= -P -DNDEBUG
  36.  
  37. # ld flags
  38. LDFLAGS = -v -lpml -s -lg++
  39.  
  40. # test targets
  41. TEST= tbitset.ttp tbitstri.ttp tcomplex.ttp tfix.ttp tfix16.ttp \
  42. tfix24.ttp tgetopt.ttp tinteger.ttp tobstack.ttp trandom.ttp trationa.ttp \
  43. tstring.ttp tillist.ttp
  44.  
  45. OBJS = $(TEST:.ttp=.o)
  46. # the stuff to make
  47. ALL= $(TEST)
  48.  
  49. objects: $(OBJS)
  50. obj: $(OBJS)
  51.  
  52. # g++ files should have extension .cc
  53. # generated test files will habe .ttp extn
  54.  
  55. .SUFFIXES: .ttp .cc
  56. .cc.o:
  57.     $(GXX) $(GXXFLAGS) -c  $<
  58.  
  59. .o.ttp:
  60.     $(GXX) -o $@ $< $(LDFLAGS)
  61.  
  62. all: $(ALL)
  63.  
  64.  
  65. clean:
  66.     rm -f *.o core
  67.  
  68. realclean: clean
  69.     rm -f $(ALL) core report
  70.  
  71. tbitset.ttp: tbitset.o
  72. tbitstri.ttp: tbitstri.o
  73. tfix.ttp: tfix.o
  74. tfix16.ttp: tfix16.o
  75. tfix24.ttp: tfix24.o
  76. tgetopt.ttp: tgetopt.o
  77. tinteger.ttp: tinteger.o
  78. tobstack.ttp: tobstack.o
  79. trandom.ttp: trandom.o
  80. trationa.ttp: trationa.o
  81. tstring.ttp: tstring.o
  82. tillist.ttp: tillist.o
  83.  
  84. # ah, the pleasures of single pass linking!
  85. tcomplex.ttp: tcomplex.o
  86.     $(GXX) -o $@ $< -lg++ -lpml $(LDFLAGS)
  87.  
  88. trandom.ttp: trandom.o
  89.     $(GXX) -o $@ $< -lg++ -lpml $(LDFLAGS)
  90.